{{csrf_field()}}
    <div class="form-group row">
        <label for="username" class="col-sm-2 col-form-label">用户名</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" maxlength="16" id="username" name="username" value="{{ $user->username ?? old('username') }}" placeholder="请输入用户名">
        </div>
    </div>
    <div class="form-group row">
        <label for="email" class="col-sm-2 col-form-label">邮箱地址</label>
        <div class="col-sm-5">
            <input type="email" class="form-control" name="email" id="email" placeholder="邮箱地址" value="{{$user->email ?? old('email')}}">
        </div>
    </div>

    <div class="form-group row">
        <label for="nickname" class="col-sm-2 col-form-label">昵称</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" maxlength="16" id="nickname" name="nickname" value="{{ $user->nickname ?? old('nickname') }}"  placeholder="请输入昵称"  >
        </div>
    </div>

    <div class="form-group row">
        <label for="phone" class="col-sm-2 col-form-label">手机号</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="phone" name="phone" value="{{$user->phone??old('phone')}}"   placeholder="请输入手机号" >
        </div>
    </div>


    <div class="form-group row">
        <label for="password" class="col-sm-2 col-form-label">密码</label>
        <div class="col-sm-5">
            <input type="password" class="form-control" maxlength="20" id="password" name="password"  placeholder="请输入密码">
        </div>
    </div>

    <div class="form-group row">
        <label for="password_confirmation" class="col-sm-2 col-form-label">确认密码</label>
        <div class="col-sm-5">
            <input type="password" class="form-control" maxlength="20" id="password_confirmation" name="password_confirmation"  placeholder="请输入确认密码">
        </div>
    </div>

    <div class ="col-sm-7" style="text-align: center;">
        <button type="submit" class="btn btn-info">提 交</button>
        <a class="btn btn-default" href="{{route('admin.user')}}">返 回</a>
    </div>